﻿using System;
using System.Collections.Generic;
using System.Text;
using System.IO;

namespace MyLibrary.IO
{
    /// <summary>
    /// 提供文件监控的类
    /// </summary>
    public class FileWatcher
    {
        private FileSystemWatcher _watcher = null;
        private string _watchPath = String.Empty;

        public string WatchPath
        {
            get { return _watchPath; }
            set { _watchPath = value; }
        }
        private string _watchFile = String.Empty;

        public string WatchFile
        {
            get { return _watchFile; }
            set { _watchFile = value; }
        }
        private string _filter = String.Empty;

        public string Filter
        {
            get { return _filter; }
            set { _filter = value; }
        }

        public FileWatcher()
        {
            _watcher = new FileSystemWatcher();    
        }
    }
}
